package com.it.mapper;

import com.it.pojo.Config;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

@Mapper
public interface ConfigMapper {

    @Select("select * from config")
    Config getConfig();

    @Update("update config set base=#{base}, plus=#{plus}, minus=#{minus}, `add`=#{add}, cut=#{cut} where id=#{id}")
    void updateConfig(Config config);

}
